/**
 * Created by linyanbin on 2018/9/30.
 */
$(function(){
    var templateHtml = '<ul>{{#each this}}<li><a href="/campus/composition_content.html?aid={{articleId}}"><i><img src="/campus{{navgationImg}}" /></i>' +
        '<div class="front"><h3>{{articleTitle}}</h3></div></a></li>{{/each}}</ul>';
    var divEle = $('.picshow');
    // 获取top5
    $.get(url.article.loadRecommendUrl, function(res){
        readTemplateAndAppend(templateHtml, res.data, divEle);
    }, "json");
});